import requests

client_id='zvTieyzBTIUuL9hWnVexbvak'
client_secret='yF4EOjYrHRtf9YvdS6Giu3LZkwb70Asb'

# client_id 为官网获取的AK， client_secret 为官网获取的SK
host = 'https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id='+client_id+'&client_secret='+client_secret
response = requests.get(host)
if response:
    print(response.json())